<?php 
/*
 * login page
*/
//include the page header
include("inc_files/ui/header.php");
$formError=0;
if (isset($_REQUEST['errorcode'])){
	if(is_numeric($_GET['errorcode'])){
		if($_GET['errorcode'] > -1 && $_GET['errorcode'] < 5) {
			$formError = $_GET['errorcode'];
		}
	}
}
 
if($formError == 4) {

	echo "<script>alert('Incorrect UserID or Password!');</script>";
}

?>

<title>Login</title>
</head>
<body>
	<form action="m_authenticate.php" method="post">
		<table style="width:100%">
		<tr>
				<td colspan="2" style="height:200px">
					<br />
				</td>
			</tr>
			<tr style="width:50%;">
				<td style="text-align:right; width:40%; vertical-align:top;">UserID:</td>
				<td style="text-align:left; width:60%; vertical-align:top;">&nbsp;<input type="text" name="userid" size="40"
				<?php if($formError == 1 || $formError == 3) {?> class="tberror"
				<?php } else {?> class="tbnormal" <?php } ?> />
				</td>
			</tr>

			<tr style="width:50%;">
				<td style="text-align:right; width:40%; vertical-align:top;">Password:<br></br><br></br><br></br>
				</td>
				<td style="text-align:left; width:60%; vertical-align:top;">&nbsp;<input type="password" name="password" size="40"
				<?php if($formError == 2 || $formError == 3) {?> class="tberror"
				<?php } else {?> class="tbnormal" <?php } ?> />
				<br></br><br></br><br></br>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="submit" name="Submit" value="Login" />
					<br />
				</td>
			</tr>

		</table>
	</form>
	<?php 	include("inc_files/ui/footer.php");?>
</body>
</html>
